#ifndef MESSAGEITEM_H
#define MESSAGEITEM_H
#include <QString>
#include <QDateTime>

class MessageItem
{
public:
    MessageItem();
    void setName(QString _name)
    {
        name = _name;
    }

    void setJid(QString _jid)
    {
        jid = _jid;
    }

    void setMessage(QString _message)
    {
        message = _message;
    }

    void setTimeStamp(QDateTime _stamp)
    {
        timeStamp = _stamp;
    }

    QString& getMessage()
    {
        return message;
    }

    QString getDateTime()
    {
        return timeStamp.toString();
    }

    bool getLeftArrow()
    {
        return jid.length()?true:false;
    }

private:
    QString jid;
    QString name;
    QString message;
    QDateTime timeStamp;
};
typedef QList< MessageItem > MessageList ;
#endif // MESSAGEITEM_H
